/*
 * @Description:
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2024-03-06
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2024-03-20
 */
import request from '/@/api/request'

/** 用户登录 */
export const requestLogin = (data: AccountLoginTypes.IRequest) => {
  return request.post<IBaseResponse<AccountLoginTypes.IResponse>>('/system/ysys-user/account/login/V1', data)
}

/** 用户登出 */
export const requestLoginOut = (data: AccountLoginOutTypes.IRequest) => {
  return request.post<IBaseResponse<AccountLoginOutTypes.IResponse>>('/system/ysys-user/account/loginOut/V1', data)
}

/** 判断账号是否存在 */
export const requestCheckAccount = (data: CheckAccountTypes.IRequest) => {
  return request.get<IBaseResponse<CheckAccountTypes.IResponse>>('/system/ysys-user/account/checkAccount', data, { errTip: false })
}
/** 查看用户信息 */
export const requestGetUserInfoByUserId = (data: GetUserInfoByUserIdTypes.IRequest) => {
  return request.get<IBaseResponse<GetUserInfoByUserIdTypes.IResponse>>('/system/ysys-user/account/getUserInfoByUserId', data)
}
